package com.feign.feign.requests;

import com.feign.message.Question2JudgeMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lenovo
 */
@FeignClient(name = "Answer-server", path = "answer")
public interface AnswerFeign {

    /***
     * 创建一条答题记录
     * @param message 从判题机-题目的消息队列中的消息
     * @return 返回是否记录成功
     */
    @GetMapping("record")
    boolean recordAnswer(@RequestParam Question2JudgeMessage message);
}
